<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<jsp:include page="/BaseFrame.jsp"></jsp:include>
<html xmlns="http://www.w3.org/1999/xhtml" >
  <body>
    <script type="text/javascript">
      function upload(){
    	  var filePath = document.getElementById("openfile").value;
    	  javaCode(filePath);
      }
      
      function javaCode(path){
    	  var file = new File(path);
    	  alert(file.getName());
      }
      
    </script>
  	<input id="openfile" name="Open..." type="file">
  	<input type="button" onclick="upload()" name="UpLoad">
  </body>
</html>